package com.mingqijia.gassafety.webserver.request.cmp.notify;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * @author zhangfei
 * @version 1.0.0
 * @ClassName registrationRequest.java
 * @Description
 * @createTime 2022年08月08日
 */
@Data
@ApiModel("注册激活")
public class RegistrationRequest {

    @ApiModelProperty(value = "imei")
    @NotEmpty(message = "imei不能为空")
    private String imei;
    @ApiModelProperty(value = "iccid")
    @NotEmpty(message = "iccid不能为空")
    private String iccid;
    @ApiModelProperty(value = "模组型号")
//    @NotEmpty(message = "模组型号不能为空")
    private String moduleModel;
    @ApiModelProperty(value = "运营商")
    @NotNull(message = "运营商不能为空")
    private Integer operator;
    @ApiModelProperty(value = "控制器类型0-独立式，1-总线控制式，2-分线控制式")
    @NotNull(message = "控制器类型不能为空")
    private Integer controlType;
    @ApiModelProperty(value = "应用场景")
//    @NotEmpty(message = "应用场所不能为空")
    private String appSite;
    @ApiModelProperty(value = "气体类型")
    @NotEmpty(message = "气体类型不能为空")
    private String gasType;

    @ApiModelProperty(value = "通讯方式，0-NB；4-4G")
    @NotNull(message = "通讯方式不能为空")
    private Integer commType;

    @ApiModelProperty(value = "主电类型，0-市电；1-碱电；2-锂电")
    @NotNull(message = "主电类型不能为空")
    private Integer powerMode;

    @ApiModelProperty(value = "电量百分比信息")
    private Integer electricQuantity;

    @ApiModelProperty(value = "CellID")
    @NotBlank(message = "CellID不能为空")
    private String cellId;

    @ApiModelProperty(value = "信号情况")
    @NotNull(message = "信号情况不能为空")
    private Integer signal;

    private Integer recordType;

    @ApiModelProperty(value = "设备号")
    @NotBlank(message = "设备号不能为空")
    private String deviceCode;

    @ApiModelProperty(value = "设备激活时间")
    @NotBlank(message = "设备激活时间不能为空")
    private String activationTime;

    @ApiModelProperty(value = "激活描述")
    private String resultDesc;

    @ApiModelProperty(value = "激活结果：0、激活成功；1、激活失败")
    @NotNull(message = "激活结果不能为空")
    private Integer activationResult;

}